package com.dao;

import com.entity.OrderStatus;
import com.entity.Orders;
import com.entity.Trolley;

import java.util.List;

public interface Order {

    //确认下单
    public int confirm(int cId);

    //查看未支付订单
    public List<OrderStatus> unPay(int cId);

    //下单
    public int orderMenus(int cId);

    //选择下单
    public int choiceOrder(int cId,int tId,int mId);

    //确认选择下单
    public int orderChoice(int cId,int tId,int mId);

    //查看已支付订单
    public List<OrderStatus> paid(int cId);

    //勾选菜品
    public int select(int cId,int mId,int tId);

    //全勾选
    public int selectAll(int cId,int tId);

    //全取消
    public int cancelAll(int cId,int tId);

    //选择取消
    public int cancel(int cId,int mId,int tId);

    //改变菜品的勾选状态
    public int alter(int cId,int mId,int tId);

    //确定菜品的勾选状态
    public String dishSelect(int cId,int mId,int tId);

    //下单前查看
    public List<Trolley> selectedMealBag(int cId);

    //评论
    public int comment(int cId,int oId,String comments);

    //已支付订单order查询
    public List<Orders> orderPaid(int cId);

    //网友评价
    public List<Orders> orderComments();
}